home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / dos / communic / pcmail / main / params.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-05  |  1.8 KB  |  75 lines

  1. /*++
  2. /* NAME
  3. /*    params 5
  4. /* SUMMARY
  5. /*    communication parameter definitions
  6. /* PROJECT
  7. /*    pc-mail
  8. /* PACKAGE
  9. /*    library
  10. /* SYNOPSIS
  11. /*    #include "params.h"
  12. /* DESCRIPTION
  13. /* .nf
  14.  
  15.  /*
  16.   * Identification strings for the external representation of the setup. The
  17.   * parameter setup is stored as a file, with one identification string and
  18.   * parameter value per line. The identification strings are the same ones as
  19.   * used by the mail shell (the Setup option in the initial screen). The UUCP
  20.   * gunk is not compiled in for systems that use daemons for message delivery.
  21.   */
  22.  
  23. #define    S_IGNORE    "ignore_header_lines:"
  24. #ifndef    DAEMON
  25. #define    S_PORT        "communications_port:"
  26. #define    S_BAUD        "baud_rate:"
  27. #define    S_HOST        "remote_host_name:"
  28. #define    S_LOGIN        "login_name:"
  29. #define    S_DIAL        "dialup_sequence:"
  30. #define    S_DISC        "disconnect_sequence:"
  31. #endif
  32.  
  33.  /* default values */
  34.  
  35. #define    D_IGNORE    "received message-id"
  36. #ifndef    DAEMON
  37. #define    D_DISC        "\\0"
  38. #endif
  39.  
  40.  /* Table offsets for the internal representation */
  41.  
  42. #define    P_IGNORE    0
  43. #ifndef    DAEMON
  44. #define    P_PORT        1
  45. #define    P_BAUD        2
  46. #define    P_HOST      3
  47. #define    P_LOGIN        4
  48. #define    P_DIAL        5
  49. #define    P_DISC        6
  50. #endif
  51.  
  52.  /* Structure of the in-core setup table. */
  53.  
  54. typedef struct {
  55.     char   *ident;            /* identification string */
  56.     int     length;            /* length of id string */
  57.     char   *strval;            /* string value of parameter */
  58.     char   *defval;            /* default string value */
  59. } Info;
  60.  
  61. extern Info *getparams();        /* read setup file */
  62.  
  63. /* AUTHOR(S)
  64. /*    W.Z. Venema
  65. /*    Eindhoven University of Technology
  66. /*    Department of Mathematics and Computer Science
  67. /*    Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands
  68. /* CREATION DATE
  69. /*    Wed Apr  8 15:39:23 GMT+1:00 1987
  70. /* LAST MODIFICATION
  71. /*    90/01/22 13:02:25
  72. /* VERSION/RELEASE
  73. /*    2.1
  74. /*--*/
  75.